///
/// 话题 对象
///
class TopicModel {
  final int id;
  final String title;
  final String pic;
  final String desc;
  final int topicType;
  final bool hasNews;
  final int addrType;
  final String addr;

  TopicModel({this.id, this.title, this.pic, this.desc, this.topicType, this.hasNews, this.addrType, this.addr});

  factory TopicModel.fromJson(Map<String, dynamic> json) {
    return TopicModel(
        id: json['id'],
        title: json['title'],
        pic: json['pic'],
        desc: json['desc'],
        topicType: json['topicType'],
        hasNews: json['hasNews'],
        addrType: json['addrType'],
        addr: json['addr']);
  }
}
